package com.ehotting.edsta.mqbd.monitor.task.active.module;

import com.ehotting.edsta.mqbd.api.enums.SysModuleEnum;
import com.ehotting.mqbd.api.bean.solver.SolverInfoBean;
import com.ehotting.mqbd.api.bean.solver.SolverStateBean;
import com.ehotting.mqbd.core.logger.ModuleActiveLogger;

public class DriverAdaptActive extends AbstractModuleActive {

    private ModuleActiveLogger mqActiveLogger;

    public DriverAdaptActive(ModuleActiveLogger mqActiveLogger) {
        this.mqActiveLogger = mqActiveLogger;
    }

    @Override
    public String getModule() {
        return SysModuleEnum.DRIVER_ADAPT.getCode();
    }

    @Override
    public Integer doAction(SolverStateBean solverState) {
        return super.doTelnet(solverState.getSolverInfo());
    }

    @Override
    public ModuleActiveLogger getModuleActiveLogger() {
        return mqActiveLogger;
    }
}
